package com.simba.server.components.data;

import org.apache.log4j.Logger;
import org.jboss.netty.channel.Channel;


public class SorterInfo
{
	protected final static Logger logger = Logger.getLogger(SorterInfo.class);

	private String sorterAddr;
	private String sorterName;
	private String sorterId;
	private boolean packet;
	private String sorterStatus;
	private int sorterModel;
	private int obrNum;
	private String obrStatus;
	private int emergencyNum;
	private String emergencyStatus;
	private int lineNum;
	private String lineStatus;
	private Channel channel;

	public String getSorterAddr()
	{
		return sorterAddr;
	}

	public void setSorterAddr(String sorterAddr)
	{
		this.sorterAddr = sorterAddr;
	}

	public String getSorterName()
	{
		return sorterName;
	}

	public void setSorterName(String sorterName)
	{
		this.sorterName = sorterName;
	}

	public String getSorterId()
	{
		return sorterId;
	}

	public void setSorterId(String sorterID)
	{
		this.sorterId = sorterID;
	}

	public String getSorterStatus()
	{
		return sorterStatus;
	}

	public void setSorterStatus(String sorterStatus)
	{
		this.sorterStatus = sorterStatus;
	}

	public int getSorterModel()
	{
		return sorterModel;
	}

	public void setSorterModel(int sorterModel)
	{
		this.sorterModel = sorterModel;
	}

	public int getObrNum()
	{
		return obrNum;
	}

	public void setObrNum(int obrNum)
	{
		this.obrNum = obrNum;
	}

	public String getObrStatus()
	{
		return obrStatus;
	}

	public void setObrStatus(String obrStatus)
	{
		this.obrStatus = obrStatus;
	}

	public int getEmergencyNum()
	{
		return emergencyNum;
	}

	public void setEmergencyNum(int emergencyNum)
	{
		this.emergencyNum = emergencyNum;
	}

	public String getEmergencyStatus()
	{
		return emergencyStatus;
	}

	public void setEmergencyStatus(String emergencyStatus)
	{
		this.emergencyStatus = emergencyStatus;
	}

	public int getLineNum()
	{
		return lineNum;
	}

	public void setLineNum(int lineNum)
	{
		this.lineNum = lineNum;
	}

	public String getLineStatus()
	{
		return lineStatus;
	}

	public void setLineStatus(String lineStatus)
	{
		this.lineStatus = lineStatus;
	}

	public Channel getChannel() {
		return channel;
	}

	public void setChannel(Channel channel) {
		if (this.channel == channel){
			return;
		}
		this.channel = channel;
	}

	public boolean isPacket() {
		return packet;
	}

	public void setPacket(boolean packet) {
		this.packet = packet;
	}
}
